<ui:composition 
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <composite:interface
        name="streamComponent"
        componentType="compositeStreamer">
        <composite:attribute name="value" type="org.deltaset.faces.upload.DsFileItem" required="true"/>
    </composite:interface>

    <composite:implementation>
        <c:if test="#{cc.isImage()}">
            <img style="max-width:100%" src="#{cc.prepareUrl}" alt="#{cc.attrs.value.name}"/>
        </c:if>
    </composite:implementation>    
</ui:composition>